﻿/*
 * @author: wizardc
 */

using Dou.UI;
using UnityEditor;

namespace DouEditor.UI
{
    [CustomEditor(typeof(UIDataDuplicator), true)]
    public class UIDataDuplicatorEditor : Editor
    {
        [MenuItem("GameObject/DouUI/Duplicator - DataProvider", false, 10)]
        private static void CreateUI(MenuCommand menuCommand)
        {
            var go = UIEditorUtil.CreateUIElement("Duplicator - DataProvider");
            go.AddComponent<UIDataDuplicator>();
            UIEditorUtil.PlaceUIElementRoot(go, menuCommand);
        }
    }
}
